package webwinkelapp;

/**
 * This class represents a Game
 * @author Rutger Broerze en Stefan Blok
 */
public class Game extends Product {
    private String name;
    private String description;
    private int maxplayers;
    private double price;
    
    public Game()
    {
        this("", "", 0, 0.0);
    }
    
    public Game(String name, String description, int maxplayers, double price)
    {
        this.name = name;
        this.description = description;
        this.maxplayers = maxplayers;
        this.price = price;
    }

    /**
     * Returns a printable string of the details of a specific Game
     * @return A String with printable Game details
     */
    @Override
    public String toString()
    {
        String str = "Naam: " + name + 
                "\nOmschrijving: " + description +
                "\nMaximum aantal spelers: " + maxplayers + 
                "\nPrijs: " + price + "\n";
        return str;
    }
    
    /**
     * Gets the name
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets the description
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the description
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Gets the maxplayers
     * @return the maxplayers
     */
    public int getMaxplayers() {
        return maxplayers;
    }

    /**
     * Sets the maxplayers
     * @param maxplayers the maxplayers to set
     */
    public void setMaxplayers(int maxplayers) {
        this.maxplayers = maxplayers;
    }

    /**
     * Gets the price
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * Sets the price
     * @param price the price to set
     */
    public void setPrice(double price) {
        this.price = price;
    }
}